package com.app.common.db.Preferences;

import java.util.Set;

/**
 * Created by zhoulikai on 17/3/3.
 * 首选项数据存储，存储一些简单数据，key-value
 */

public interface IPreferencesStorage {

    public void setVale(String key, String value);

    public String getValue(String key, String defaultValue);

    public void setVale(String key, boolean value);

    public boolean getValue(String key, boolean defaultValue);

    public void setVale(String key, int value);

    public int getValue(String key, int defaultValue);

    public void setVale(String key, float value);

    public float getValue(String key, float defaultValue);

    public void setVale(String key, long value);

    public long getValue(String key, long defaultValue);

    public void setVale(String key, Set<String> value);

    public Set<String> getValue(String key, Set<String> defaultValue);
}
